package com.kingint.web.portal.serve.service;


import com.kingint.web.vo.ActivitiParam;

import java.util.HashMap;
import java.util.Map;

/**
 * activity相关的处理接口
 */
public interface ActivitiCancelService {

    /**
     * 发布流程相关定义
     * @param activitiParam
     * @return
     */
    int processDeploy(ActivitiParam activitiParam);

    /**
     * 启动流程定义
     * @param processInstanceKey
     * @param businessKey 业务关联字段
     * @param variables 流程相关参数
     * @return
     */
    String startProcess(String processInstanceKey, String businessKey,HashMap<String, Object> variables);

    /**
     * 完成节点
     * @param id 总工单表id
     * @param processInstanceKey 实列名称
     * @param businessKey 业务关联id
     * @param variables 流程参数
     * @return
     */
    boolean complete(Integer id, String processInstanceKey, String businessKey, Map<String,Object> variables);
    boolean complete(Integer id,String processInstanceKey,String businessKey);
}
